package org.liukai.ems.controller;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

/**
 * @create BaseController.java 11:08
 * 
 * @author liukai
 * @date 2015/12/15
 */
public class BaseController {
	//通用异常处理
    @ExceptionHandler(Exception.class)
    public ModelAndView handerException(HttpServletRequest request,  Exception e) {
    	e.printStackTrace();
        ModelAndView model = new ModelAndView("error/error");
        return model;
    }
}
